import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'business/keyproject/add',
    method: 'post',
    data
  })
}

export function del(id) {
  return request({
    url: '/business/keyproject/delete/' + id,
    method: 'post',
  })
}

export function edit(data) {
  return request({
    url: '/business/keyproject/update',
    method: 'post',
    data
  })
}

export function get(id) {
  return request({
    url: `/business/keyproject/view/` + id,
    method: 'get'
  })
}

export default { add, edit, del, get}

